package com.jhs.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 节路由表单对象
 *
 * @author zxy
 * @since 2025-11-22 10:18
 */
@Getter
@Setter
@Schema(description = "节路由表单对象")
public class SysRouteForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "路由IP")
    @NotBlank(message = "路由IP不能为空")
    @Size(max=50, message="路由IP长度不能超过50个字符")
    private String routeIp;

    @Schema(description = "路由端口号")
    @NotNull(message = "路由端口号不能为空")
    private Integer port;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
